package com.designpatterns.behavioral.decorator;

public class ComponentDecorator extends Component {
    private Component component; //维持对抽象构建类型对象的引用

    @Override
    public void display() {
        component.display();
    }

    public Component getComponent() {
        return component;
    }

    public void setComponent(Component component) {
        this.component = component;
    }
}
